﻿using System.Web.Mvc;
using Journal.Common.Helpers.HtmlControls;

namespace Journal.Common.Objects.Column
{
    public class ImageColumn : IBaseColumn
    {
        public ImageColumn(string imageSrc, string alt)
        {
            ImageSrc = imageSrc;
            Alt = alt;
        }

        public MvcHtmlString Render()
        {
            return TableControl.ImageColumn(ImageSrc, Alt);
        }

        public string ImageSrc { get; set; }

        public string Alt { get; set; }
    }
}